import request from '@/static/js/popular.js'
/**
 * 获取可处理的科室
 */
export function getHandleDepartment(time) {
	return request.ajaxPost('/v1/get/system/other_config/ticket/accept_dept', {})
}

/**
 * 扫码报修页面配置
 */
export function getScanCodeConfig(){
	 return request.ajaxPost('/v1/wechat/get/ticket/repair/config')
}

/**
 * 创建报修
 */
export function  addReport (data) {
	return request.ajaxPost('/busOrderFault/createOrderByWechat',data)
 
}
/**
 * 获取扫码内容
 */
export function getScanCodeContent(code){
	return request.ajaxPost('/v1/wechat/get/order/scan',{code})
}

/**
 * 获取扫码内容对应的报修数据
 */
export function getScanReportData(assetCode){
	return request.ajaxPost('/bus/assets/getAssertByCode',{assetCode})
	}
 